const int LT_POINT=1;
const int LT_SPOT=2;
const int LT_SUN=3;


class Light
{
	friend class Entity;
	unsigned char type;
	void init(void);
	GLfloat spec[4];
	GLfloat ambient[4];
	GLfloat diffuse[4];
	unsigned char lnum;
public:
	Light(void);
	Light(unsigned char Type_);
	~Light(void);
	void Color(float r,float g,float b,float a);
	void SpecColor(float r,float g,float b,float a);
	void AmbientColor(float r,float g,float b,float a);
	void DiffuseColor(float r,float g,float b,float a);
	void Draw(void);
};

typedef std::list<Light*> Tllist; 
Tllist llist;
